home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
opint102.5rc
/
D_GEN.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-12-04
|
2KB
|
70 lines
Program DemoGeneral;
{***************************************************************************}
{* *}
{* O p u s I n t e r f a c e V e r 1.02 Demo Program. *}
{* *}
{* Opus V 1.0x Interface for Turbo Pascal Ver 4.0 *}
{* *}
{* These Structures,Procedures and Functions may help you to make OPUS *}
{* utilities for to help other SysOps, Please read the Documentation. *}
{* *}
{* Regards *}
{* Per Holm *}
{* *}
{* FIDO: Per Holm - Asgaard BBS 2:230/22.0 *}
{* UUCP: perholm@daimi.DK *}
{* *}
{***************************************************************************}
Uses Dos,Opint;
var
l: longint;
DT: DateTime;
S: String[20];
begin
writeln(UpperCase('This is a sTupid TEst A_b-C!def@g'));
writeln(LowerCase('This is a sTupid TEst A_b-C!def@g'));
writeln(SmartCase('This is a sTupid TEst A_b-C!def@g'));
{***** Get the path environ ment variable *****}
writeln('PATH=',GetEnvStr('PATH'));
{***** Get the difference from GMT *****}
writeln('TZ=',GMT_Difference);
{***** Date conversion routines *****}
GetDateTime(DT);
writeln(PackDateString(DT));
s:=PackDateString(DT);
UnPackDateString(S,DT);
writeln(PackDateString(DT));
l:=PackUnixDate(DT);
writeln('So many seconds has past since 1970 :',l);
UnpackUnixDate(l,DT);
writeln(PackDateString(DT));
writeln(PackDateStrLog(DT));
{***** And now let's make a line in the Log file format *****}
AddLog('Con','*','TEST here we are');
{***** The Delay procedure *****}
write('Now lets wait 10 secconds ');
GetDateTime(DT);
writeln(PackDateString(DT));
Delay(10000);
write('Thats''s all folks ');
GetDateTime(DT);
writeln(PackDateString(DT));
readln;
end.